import os
SECRET_KEY = os.urandom(24)

DB_USERNAME='root'
DB_PASSWORD='123456'
DB_HOST='127.0.0.1'
DB_PORT=3306
DB_NAME='wh_flask'

DB_URI ='mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8' %(DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME)

SQLALCHEMY_DATABASE_URI = DB_URI
SQLALCHEMY_TRACK_MODIFICATIONS = False

CMS_USER_ID = '12212AFADF3'



MAIL_SERVER = 'smtp.qq.com'#邮件发送服务器地址
MAIL_PORT = '587'
MAIL_USE_TLS = True
# MAIL_USE_SSL : default False

MAIL_USERNAME = '2287228249@qq.com'
MAIL_PASSWORD = 'mwwlkcobywhpebcj'
MAIL_DEFAULT_SENDER = '2287228249@qq.com'

# UEditor的相关配置
UEDITOR_UPLOAD_TO_QINIU = True
UEDITOR_QINIU_ACCESS_KEY = "M4zCEW4f9XPanbMN-Lb9O0S8j893f0e1ezAohFVL"
UEDITOR_QINIU_SECRET_KEY = "7BKV7HeEKM3NDJk8_l_C89JI3SMmeUlAIatzl9d4"
UEDITOR_QINIU_BUCKET_NAME = "hyvideo"
UEDITOR_QINIU_DOMAIN = "http://7xqenu.com1.z0.glb.clouddn.com/"

# flask-paginate的相关配置
PER_PAGE = 10

# celery相关的配置
CELERY_RESULT_BACKEND = "redis://127.0.0.1:6379/0"
CELERY_BROKER_URL = "redis://127.0.0.1:6379/0"
